import React, { Component } from 'react'
import './index.css'

export default class Item extends Component {
  render () {
    // 解析todos
    // const {todos} = this.props
    const {id,name}= this.props
    return (
      <ul>
        <li>
          <label>
            <span>{name}</span>
            <button>删除</button>
          </label>
        </li>
      </ul>
    )
  }
}
